package com.ttg.model.mapper;
import com.ttg.model.po.BankPublicMerchTradePrimitivePO;
import com.ttg.model.pojo.BankPublicMerchTradePrimitive;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttg.model.vo.MerchTradePrimitiveSumVO;
import com.ttg.model.vo.MerchAcctInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TblBankPublicTradePrimitive) mapper
 *
 * @author chenyou
 * @datetime 2025-10-13 13:40:48
 */
 @Mapper
public interface BankPublicMerchTradePrimitiveMapper extends BaseMapper<BankPublicMerchTradePrimitive>{

     List<MerchTradePrimitiveSumVO> getParam(@Param("po") BankPublicMerchTradePrimitivePO po);

    List<Long> getMerchNos(@Param("po") BankPublicMerchTradePrimitivePO po);

    List<MerchAcctInfoVO> getAcctInfoByMctNos(@Param("date") Integer date,@Param("mctNos") List<String> mctNos);

    List<MerchAcctInfoVO> getAcctNoByMctNosAndMonth(@Param("firstDay") Integer firstDay, @Param("lastDay") Integer lastDay, @Param("mctNos") List<String> mctNos);

    List<String> getMctNosByMonth(@Param("firstDay") Integer firstDay, @Param("lastDay") Integer lastDay);

    List<MerchTradePrimitiveSumVO> getMerchTradeInfoByMonth(@Param("firstDay") Integer firstDay, @Param("lastDay") Integer lastDay, @Param("mctNos") List<String> mctNos);
}

